package com.air.common.service;

import java.util.List;


import com.air.common.exception.NoSuchConfigException;
import com.air.common.mo.SystemConfig;

public interface ISystemConfigService  {
	
	
	public SystemConfig addConfig(String key,String value,String description,String type) throws Exception;
	
	public SystemConfig addConfig(SystemConfig config) throws Exception;
	
	public void updateConfigByKey(SystemConfig newConfig) throws NoSuchConfigException;
	
	public void deleteConfigByKey(String key) throws NoSuchConfigException;
	
	public List<SystemConfig> getAllConfig();
	
	public SystemConfig findConfigByKey(String key) throws NoSuchConfigException;
	
	public void reloadConfigFromDB();
}
